package com.model;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TDonate entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "T_donate", schema = "")
public class TDonate implements java.io.Serializable {

	// Fields

	private String donateId;
	private String donor;
	private String donatedItems;
	private Date donateTime;

	// Constructors

	/** default constructor */
	public TDonate() {
	}

	/** minimal constructor */
	public TDonate(String donateId) {
		this.donateId = donateId;
	}

	/** full constructor */
	public TDonate(String donateId, String donor, String donatedItems, Date donateTime) {
		this.donateId = donateId;
		this.donor = donor;
		this.donatedItems = donatedItems;
		this.donateTime = donateTime;
	}

	// Property accessors
	@Id
	@Column(name = "donateId", unique = true, nullable = false)
	public String getDonateId() {
		return this.donateId;
	}

	public void setDonateId(String donateId) {
		this.donateId = donateId;
	}

	@Column(name = "donor")
	public String getDonor() {
		return this.donor;
	}

	public void setDonor(String donor) {
		this.donor = donor;
	}

	@Column(name = "donatedItems")
	public String getDonatedItems() {
		return this.donatedItems;
	}

	public void setDonatedItems(String donatedItems) {
		this.donatedItems = donatedItems;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "donateTime", length = 10)
	public Date getDonateTime() {
		return this.donateTime;
	}

	public void setDonateTime(Date donateTime) {
		this.donateTime = donateTime;
	}
}